﻿package Message.Login
{
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SLoginReturn extends Object
    {
        public var playerId:int;
        public var name:String;
        public var sex:int;
        public var career:int;
        public var sessionKey:SSessionKey;
        public var urls:Array;

        public function SLoginReturn()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.playerId);
            param1.writeString(this.name);
            param1.writeInt(this.sex);
            param1.writeInt(this.career);
            this.sessionKey.__write(param1);
            SeqUrlHelper.write(param1, this.urls);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.playerId = param1.readInt();
            this.name = param1.readString();
            this.sex = param1.readInt();
            this.career = param1.readInt();
            this.sessionKey = new SSessionKey();
            this.sessionKey.__read(param1);
            this.urls = SeqUrlHelper.read(param1);
            return;
        }// end function

    }
}
